﻿package mortal.game.view.common.guide.data
{
    import Message.DB.Tables.*;
    import mortal.game.cache.*;
    import mortal.game.resource.*;

    public class AutoGuideCache extends Object
    {
        public var _isGuidedZBXL:Boolean = false;
        public var _isGuidedPZTS:Boolean = false;
        public var _isGuidedBSXQ:Boolean = false;
        public var _isGuidedBSQH:Boolean = false;
        public static var isWaittingFollowFightAI:Boolean = false;
        private static var _instance:AutoGuideCache;
        public static var isGuidingAutoUsePetEgg:Boolean = false;
        public static var isGuidingAutoUseWizardBook:Boolean = false;
        public static var isGuidingEquipTransform:Boolean = false;
        public static var isGuidingPetEgg:Boolean = false;
        private static var _isGuideFuncPanel:Boolean = false;
        public static var isGuidingLevelReward:Boolean = false;
        public static var isGuidingSevenDay:Boolean = false;
        public static var isNotAutoAI:Boolean = false;

        public function AutoGuideCache()
        {
            return;
        }// end function

        public function isGuidingZBXL() : Boolean
        {
            if (this._isGuidedZBXL)
            {
                return false;
            }
            var _loc_1:* = TaskConfig.instance.getTaskGuide(10028);
            if (_loc_1 == null)
            {
                return false;
            }
            if (Cache.instance.task.getTaskByCode(int(_loc_1.taskId), true))
            {
                return true;
            }
            return false;
        }// end function

        public function isGuidingPZTS() : Boolean
        {
            if (this._isGuidedPZTS)
            {
                return false;
            }
            var _loc_1:* = TaskConfig.instance.getTaskGuide(10027);
            if (_loc_1 == null)
            {
                return false;
            }
            if (Cache.instance.task.getTaskByCode(int(_loc_1.taskId), true))
            {
                return true;
            }
            return false;
        }// end function

        public function isGuidingBSXQ() : Boolean
        {
            if (this._isGuidedBSXQ)
            {
                return false;
            }
            var _loc_1:* = TaskConfig.instance.getTaskGuide(10030);
            if (_loc_1 == null)
            {
                return false;
            }
            if (Cache.instance.task.getTaskByCode(int(_loc_1.taskId), true))
            {
                return true;
            }
            return false;
        }// end function

        public function isGuidingBSQH() : Boolean
        {
            if (this._isGuidedBSQH)
            {
                return false;
            }
            var _loc_1:* = TaskConfig.instance.getTaskGuide(10031);
            if (_loc_1 == null)
            {
                return false;
            }
            if (Cache.instance.task.getTaskByCode(int(_loc_1.taskId), true))
            {
                return true;
            }
            return false;
        }// end function

        public static function get isGuideFuncPanel() : Boolean
        {
            return _isGuideFuncPanel;
        }// end function

        public static function set isGuideFuncPanel(param1:Boolean) : void
        {
            _isGuideFuncPanel = param1;
            return;
        }// end function

        public static function get instance() : AutoGuideCache
        {
            if (_instance == null)
            {
                _instance = new AutoGuideCache;
            }
            return _instance;
        }// end function

    }
}
